set(LOCAL_MODULE libbtdevice)

include_directories(LOCAL_C_INCLUDES 
    $(CMAKE_CURRENT_SOURCE_DIR)/.. 
    $(CMAKE_CURRENT_SOURCE_DIR)/include 
    $(CMAKE_CURRENT_SOURCE_DIR)/../btcore/include 
    $(CMAKE_CURRENT_SOURCE_DIR)/../gki/common 
    $(CMAKE_CURRENT_SOURCE_DIR)/../hci/include 
    $(CMAKE_CURRENT_SOURCE_DIR)/../include 
    $(CMAKE_CURRENT_SOURCE_DIR)/../osi/include 
    $(CMAKE_CURRENT_SOURCE_DIR)/../stack/include 
    $(bdroid_C_INCLUDES)
)

set(LOCAL_SRC_FILES 
    src/classic/peer.c 
    src/controller.c
)

# build static library
add_library(${LOCAL_MODULE} STATIC ${LOCAL_SRC_FILES})
set_target_properties(${LOCAL_MODULE} PROPERTIES PREFIX "")

#LOCAL_CFLAGS := $(bdroid_CFLAGS)
#LOCAL_CONLYFLAGS := $(bdroid_CONLYFLAGS)
#LOCAL_MODULE := libbtdevice
#LOCAL_MODULE_TAGS := optional
#LOCAL_SHARED_LIBRARIES := libc liblog
#LOCAL_MODULE_CLASS := STATIC_LIBRARIES

#include $(BUILD_STATIC_LIBRARY)

#####################################################
#LOCAL_C_INCLUDES := \
#    $(CMAKE_CURRENT_SOURCE_DIR)/.. \
#    $(CMAKE_CURRENT_SOURCE_DIR)/../osi/include \
#    $(bdroid_C_INCLUDES)
#
#LOCAL_SRC_FILES := \
#    ../osi/test/AllocationTestHarness.cpp \
#    ./test/classic/peer_test.cpp
#
#LOCAL_CFLAGS := -Wall -Werror $(bdroid_CFLAGS)
#LOCAL_MODULE := net_test_device
#LOCAL_MODULE_TAGS := tests
#LOCAL_SHARED_LIBRARIES := liblog libdl
#LOCAL_STATIC_LIBRARIES := libbtdevice libbtcore libosi libcutils
#
#include $(BUILD_NATIVE_TEST)
